<!-- 引入公共部分 -->
{{extend './layout.html'}}

{{block 'link'}}
<!-- 添加css链接 -->
<link rel="stylesheet" href="/static/admin/css/goodsDetail.css">
{{/block}}

<!-- body代码 -->
{{block 'main'}}
    <!-- 头部导航代码 -->
    {{include './header.html'}}
    <div class="banner">
        <div class="left">
            <!-- 侧边栏 -->
            {{include './aside.html'}}
        </div>
        <div class="right">
            <div class="nav">
                <i class="iconfont shouyebeifen"></i>
                <a href="/admin">首页</a>
                <i class="iconfont zuoyoujiantou"></i>
                <a href="/admin/store/goodsMenu">商品列表</a>
                <i class="iconfont zuoyoujiantou"></i>
                <a href="/admin/store/goodsDetail">商品详情</a>
            </div>
            <div class="wrap">
                <div class="goodsInfoDiv">
                    <span class="goodsInfoTitle">商品信息</span>
                    <div class="goodsinfo">
                        <span>商品名称：{{info.goodsName?info.goodsName:"无"}}</span>
                        <span>商品状态：{{info.flag==1?"在售":"未上架"}}</span>
                        <span>商品价格：￥{{info.goodsPrice?info.goodsPrice:"无"}}</span>
                        <span>商品库存：{{info.stock?info.stock:"无"}}</span>
                        <span>商品月销：{{info.monthlySales?info.monthlySales:"无"}}</span>
                        <span>商品描述：{{info.introduction?info.introduction:"无"}}</span>
                        <span>商品类别：{{info.bType?info.bType:"无"}}</span>
                        <span>所属店铺：{{info.shopName?info.shopName:"无"}}</span>
                        <span>店主名称：{{info.nickname?info.nickname:"无"}}</span>
                        <span>商品申请时间：{{info.time?info.time:"无"}}</span>
                    </div>
                </div>
                <div class="goodsMainImgsDiv">
                    <span class="goodsImgTitle">商品核心图</span>
                    <div class="goodsMainImg">
                        <div>
                            <img src="{{info.cover?info.cover:''}}" alt="">
                        </div>
                    </div>
                </div>
                <div class="goodsHandleDiv">
                    <span class="goodsHandleTitle">商品操作</span>
                    <div class="goodsBtns">
                        <button class="btn updataBtn" id={{info.flag==1?'hide':'a'}} flag={{info.flag}} name={{goodsId}} userid={{userId}} onclick="openPassGoodsFun()">通过</button>
                        <button class="btn delsBtn" id={{info.flag!=1?'hide':'a'}} flag={{info.flag}} name={{goodsId}} userid={{userId}} onclick="openPassGoodsFun()">下架</button>
                        <button class="btn addBtn" onclick="returnFun()">返回上一步</button>
                    </div>
                </div>
               <div class="reasonWin">
                   <div class="reasonTop">
                       <span>内容</span>
                       <i class="iconfont shibai" onclick="closeReasonWin()"></i >
                   </div>
                   <span class="rafusalReason">请说明拒绝该申请人申请店铺的理由，以便下次在申请时做好准备。</sp>
                    <textarea name="desc" placeholder="请输入拒绝理由" class="reasonWrap"></textarea>
                    <div class="reasonBtns">
                        <button class="btn updataBtn" id="passBtn"  onclick="undercarriageGoodsFun()">确认</button>
                        <button class="btn delsBtn" id="refuseBtn" onclick="closeReasonWin()">取消</button>
                    </div>
               </div>
               <div class="covers" onclick="closeReasonWin()"></div>
            </div> 
        </div>
        <!-- 底部信息 -->
        
        {{include './footer.html'}}
        <div class="covers" onclick="closeFun()"></div>
        
    </div>
    {{include './tools.html'}}
{{/block}}
{{block 'script'}}
<!-- 添加js代码 -->
<script src="/static/admin/js/goodsDetail.js"></script>
{{/block }}
